{% if user %}
    {% embed "OpenfennecCoreBundle::layout.html.twig" %}
        {% block title %}{{ user.nick }} :: {{ site.name }}{% endblock %}
        
        {% block content %}
            <div class="page-header">
                <img src="{{ user.email|gravatar(48) }}" class="img-thumbnail pull-left">
                <h1 class="pull-right text-left">{{ user.nick }}</h1>
                <div class="clearfix"></div>
            </div>
            <dl class="dl-horizontal">
                <dt>{{ "user.label.username"|trans }}</dt>
                <dd>{{ user.username }}</dd>
                <dt>{{ "user.label.email"|trans }}</dt>
                <dd>{{ user.email }}</dd>
                <dt>{{ "user.label.status"|trans }}</dt>
                {% if user.isEnabled %}
                    <dd class="text-success">{{ "user.label.active"|trans }}</dd>
                {% else %}
                    <dd class="text-danger">{{ "user.label.inactive"|trans }}</dd>
                {% endif %}
                <dt>{{ "user.label.registered_since"|trans }}</dt>
                <dd>{{ user.dateCreated|date("d-m-Y") }}</dd>
            </dl>
        {% endblock %}
    {% endembed %}
{% else %}
    {% include "OpenfennecCoreBundle::error_404.html.twig" %}
{% endif %}

